<input type="text" name="uname" value="Rasmus Lerdorf" id="unameId" />

<script type="text/javascript">
  alert(document.getElementById('unameId').value);
</script>
